package com.xxxx.server.mapper;

import com.xxxx.server.pojo.Department;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxxx.server.pojo.ResBean;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhoubin
 * @since 2021-11-13
 */
public interface DepartmentMapper extends BaseMapper<Department> {
//    查询所有部门
    List<Department> getDepartMent( Integer parentId);
//    添加部门
    void addDept(Department department);
//    删除部门
    ResBean delDept(Department department);
}
